
package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.ChartCategorySearchEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
 * @author autoGen
 * @time 2019-01-07 11:13:40
 */
@Repository
@Mapper
public interface ChartCategorySearchDao {

    Integer insert(ChartCategorySearchEntity chartCategory);

    Integer insertBatch(@Param("list") List<ChartCategorySearchEntity> list);

    Integer updateBatch(@Param("list") List<ChartCategorySearchEntity> list, @Param("corpid") String corpid);

    Integer update(ChartCategorySearchEntity chartCategory);

    List<ChartCategorySearchEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    ChartCategorySearchEntity getById(@Param("id") Long id, @Param("corpid") String corpid);
}